package p09.p0930;

public class Test {
    public static void main(String[] args) {
        JumpDog jumpDog = new JumpDog("dog-dog",1);
        jumpDog.jump();
        System.out.println("");
        jumpDog.eat();
        System.out.println("");
        jumpDog.sleep();
        System.out.println("");
        System.out.println("jumpDog name= " + jumpDog.getName());
        System.out.println("jumpDog age= " + jumpDog.getAge());
        System.out.println("------------------");
        System.out.println("");
        JumpCat jumpCat = new JumpCat();
        jumpCat.setName("cat-cat");
        jumpCat.setAge(22);
        System.out.println("");
        jumpCat.jump();
        System.out.println("");
        jumpCat.eat();
        System.out.println("");
        jumpCat.sleep();
        System.out.println("");
        System.out.println("jumpCat name= " + jumpCat.getName());
        System.out.println("");
        System.out.println("jumpCat age= " + jumpCat.getAge());


    }
}
